<article class="page-container">
	<form class="layui-form" enctype="multipart/form-data" method="post" action="">
	  <div class="layui-form-item">
	    <label class="layui-form-label">标题</label>
	    <div class="layui-input-block">
      		<input class="layui-input" type="text" name="title" required  lay-verify="required" placeholder="请输入标题" value="">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">分类</label>
	    <div class="layui-input-block">
	      <select name="cat_id" lay-verify="required">
	        <option value=""></option>
          <{volist name="category" id="v"}>
              <option value="<{$v.id}>"><{$v.cat_title}></option>
          <{/volist}>
	      </select>
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">打开方式</label>
	    <div class="layui-input-block">
	      <select name="link_type" lay-verify="required">
	        <option value=""></option>
			<{volist name="link_type" id="v"}>
            <option value="<{$key}>"><{$v}></option>
            <{/volist}>
	      </select>
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">链接</label>
	    <div class="layui-input-block">
      		<input class="layui-input" type="text" name="url" placeholder="请输入链接  可不填" value="">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">图片</label>
	    <div class="layui-input-block">
	    	<{:com_c_up(url('c/up', 'dir=default&f=pic&thumb=0'))}>
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">扩展</label>
	    <div class="layui-input-block">
      		<input class="layui-input" type="text" name="ext" placeholder="请输入扩展 可不填" value="">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <div class="layui-input-block">
	      <button class="layui-btn" lay-submit lay-filter="form">提交</button>
	      <button class="layui-btn layui-btn-primary" onClick="c_close(this);" >关闭</button>
	    </div>
	  </div>
	</form>
</article>